<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"
	xmlns:c="http://java.sun.com/jstl/core">
<body>

<ui:composition template="/templates/layout/columns_1.xhtml">
	<ui:define name="column1">
		<s:cache key="objekt_column1_#{param.idObjekta}_#{currentLang}"
			region="pageFragments">
			<rich:panel id="desc" styleClass="no-border">
				<s:div styleClass="title">
					<s:div styleClass="left">
						<h1><h:outputText
							value="#{messages[stringUtil.toString(objektDetails.tipObjekta.idTipaObjekta)]} #{objektDetails.naziv}, " />
						<h:outputLink
							value="#{application.contextPath}/guides/mjesta/mjesto.seam">
							<f:param name="idMjesta" value="#{objektDetails.mjesto.idMjesta}" />
							<f:param name="l" value="#{currentLang}" />
							<f:param name="title"
								value="#{titleAction.getUrlTitle(objektDetails.mjesto)}" />
							<h:outputText value="#{objektDetails.mjesto.naziv}" />
						</h:outputLink></h1>
					</s:div>
					<s:div styleClass="right">
						<s:div styleClass="right">
							<f:subview
								rendered="#{objektDetails.minCijena != null and objektDetails.maxCijena != null and objektDetails.minCijena != objektDetails.maxCijena}">
								<h2><h:outputText value="#{objektDetails.minCijena} EUR"
									rendered="#{objektDetails.minCijena != null}"></h:outputText> <ctg:nbsp />
								- <ctg:nbsp /> <h:outputText
									value="#{objektDetails.maxCijena} EUR"
									rendered="#{objektDetails.maxCijena != null}"></h:outputText></h2>
							</f:subview>
							<f:subview
								rendered="#{objektDetails.minCijena != null and objektDetails.maxCijena != null and objektDetails.minCijena == objektDetails.maxCijena}">
								<h2><h:outputText value="#{objektDetails.maxCijena} EUR"></h:outputText></h2>
							</f:subview>
						</s:div>
						<br class="clearb" />
					</s:div>
					<br class="clearb" />
				</s:div>
				<div id="descimg" class="leftm"><ctg:imageGallery
					slike="#{slikeByObjekt}"
					alt="#{messages[stringUtil.toString(objektDetails.tipObjekta.idTipaObjekta)]} #{objektDetails.naziv},#{objektDetails.mjesto.naziv}" />
				<br />
				<div class="infotxt"><h:outputFormat
					value="#{messages['label.images.number']}">
					<f:param value="#{objektDetails.brojSlika}"></f:param>
				</h:outputFormat> <ctg:nbsp />|<ctg:nbsp /> <s:link styleClass="special2"
					value="#{messages['label.add_edit']}"
					action="#{slikaAction.addSlika('backToObjekt')}" /></div>
				</div>
				<s:div styleClass="left desc">
					<s:div styleClass="left" style="width:60%">
						<h:outputText value="#{messages['label.kategorija.ocjena']}: " />
						<h:graphicImage
							value="/resources/images/class_#{objektDetails.kategorija.brojZvjezdica}star.gif"
							rendered="#{objektDetails.kategorija != null}" />
						<br />
						<h:outputText value="#{messages['label.ctg_id']}: " />
						<h:outputText value="#{objektDetails.ctgId}" />
						<rich:spacer width="20px"></rich:spacer>
						<f:subview rendered="#{objektDetails.interniId != null}">
							<h:outputText value="#{messages['label.interni_broj']}: " />
							<h:outputText value="#{objektDetails.interniId}" />
						</f:subview>
						<br />
						<f:subview rendered="#{! empty objektDetails.siteUrl}">
							<h:outputLabel value="#{messages['label.www']} " />
							<h:outputLink target="_blank"
								value="http://#{objektDetails.siteUrl}">
								<h:outputText
									value="#{stringUtil.substring(objektDetails.siteUrl,30)}" />
							</h:outputLink>
						</f:subview>
					</s:div>
					<s:div styleClass="right">
						<h:panelGrid columns="1" cellpadding="0" cellspacing="0">
							<h:panelGrid columns="2" cellpadding="0" cellspacing="0"
								rendered="#{objektDetails.ocjena != null}">
								<h:outputText value="#{messages['label.rate']} "
									rendered="#{objektDetails.brojDojmova > 0}" />
								<ctg:rate maxRates="10" readOnly="true"
									value="#{objektDetails.ocjena == null ? 0 : objektDetails.ocjena}" />
							</h:panelGrid>
							<h:outputLink styleClass="text11 special2" value="#reviews"
								rendered="#{objektDetails.brojDojmova > 0 and objektDetails.ocjena != null}">
								<h:outputFormat value="#{messages['message.read.reviews']}">
									<f:param value="#{objektDetails.brojDojmova}"></f:param>
								</h:outputFormat>
							</h:outputLink>
							<s:link styleClass="text11 special2"
								value="#{messages['label.write.review']}"
								action="#{dojamAction.addSetup('backToObjekt')}" />
						</h:panelGrid>
					</s:div>
					<br class="clearb" />
					<br />
					<f:subview
						rendered="#{objektDetails.getOpis(localeSelector.language).getOpis().length() > 0}">
						<p><h:outputText
							value="#{objektDetails.getOpis(localeSelector.language).getOpis()}" /></p>
					</f:subview>
				</s:div>
				<br class="clearb" />
				<f:subview
					rendered="#{objektDetails.getSmjestaj(1, messages).size() > 0}">
					<br />
					<h3><h:outputText
						value="#{messages['label.basic.information']}" /></h3>
					<h:panelGrid columns="2" cellpadding="0" cellspacing="0"
						styleClass="tablep">
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.otvorenoOd!= null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputText value="#{messages['label.osobina.otvorenoOd']}" />
							<h:outputText value="#{stringUtil.formatDate('dd.MM',objektDetails.smjestaj.otvorenoOd)}">
							</h:outputText>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.otvorenoDo!= null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputText value="#{messages['label.osobina.otvorenoDo']}" />
								<h:outputText value="#{stringUtil.formatDate('dd.MM',objektDetails.smjestaj.otvorenoDo)}">
							</h:outputText>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.checkIn != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputText value="#{messages['label.osobina.checkIn']}" />
							<h:outputText value="#{stringUtil.formatDate('HH:mm',objektDetails.smjestaj.checkIn)}">
	
							</h:outputText>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.checkOut != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputText value="#{messages['label.osobina.checkOut']}" />
								<h:outputText value="#{stringUtil.formatDate('HH:mm',objektDetails.smjestaj.checkOut)}">
							</h:outputText>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.osobe != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.osobe']}">
								<f:param value="#{objektDetails.smjestaj.osobe}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.povrsina != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.povrsina']}">
								<f:param value="#{objektDetails.smjestaj.povrsina}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.bracniKreveti != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.bracniKreveti']}">
								<f:param value="#{objektDetails.smjestaj.bracniKreveti}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.jednostrukiKreveti != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.jednostrukiKreveti']}">
								<f:param value="#{objektDetails.smjestaj.jednostrukiKreveti}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.kat != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.kat']}">
								<f:param value="#{objektDetails.smjestaj.kat}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.konferencijskeDvorane != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.konferencijskeDvorane']}">
								<f:param value="#{objektDetails.smjestaj.konferencijskeDvorane}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.kreveti != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.kreveti']}">
								<f:param value="#{objektDetails.smjestaj.kreveti}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.kupaonice!= null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.kupaonice']}">
								<f:param value="#{objektDetails.smjestaj.kupaonice}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.minimalniBoravak != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.minimalniBoravak']}">
								<f:param value="#{objektDetails.smjestaj.minimalniBoravak}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.mjestaZaKucNaKot != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.mjestaZaKucNaKot']}">
								<f:param value="#{objektDetails.smjestaj.mjestaZaKucNaKot}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.parcele != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.parcele']}">
								<f:param value="#{objektDetails.smjestaj.parcele}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.pomocniKreveti != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.pomocniKreveti']}">
								<f:param value="#{objektDetails.smjestaj.pomocniKreveti}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.povrsinaKampMjesta != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.povrsinaKampMjesta']}">
								<f:param value="#{objektDetails.smjestaj.povrsinaKampMjesta}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.povrsinaZemljista != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.povrsina_zemljista']}">
								<f:param value="#{objektDetails.smjestaj.povrsinaZemljista}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.sanitarniCvorovi != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.sanitarniCvorovi']}">
								<f:param value="#{objektDetails.smjestaj.sanitarniCvorovi}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup rendered="#{objektDetails.smjestaj.sobe != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.sobe']}">
								<f:param value="#{objektDetails.smjestaj.sobe}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.povrsinaTerase != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.povrsinaTerase']}">
								<f:param value="#{objektDetails.smjestaj.povrsinaTerase}" />
							</h:outputFormat>
						</h:panelGroup>
					</h:panelGrid>
				</f:subview>
				<f:subview rendered="#{tipoviOsobinaByObjekt.size() > 0}">
					<br />
					<h3><h:outputText value="#{messages['label.pogodnosti']}" /></h3>
					<rich:dataGrid value="#{tipoviOsobinaByObjekt}" var="to"
						columns="3" cellpadding="10" cellspacing="0"
						columnClasses="top,top,top">
						<h:panelGroup>
							<b><h:outputText
								value="#{messages[stringUtil.merge('label.tip_osobine.',to.idTipaOsobine, objektDetails.tipObjekta.idTipaObjekta == 4 and to.idTipaOsobine == 3 ? '.h' : '')]} " /></b>
							<ctg:nbsp />
							<rich:dataList var="osobina"
								value="#{objektDetailsAction.getOsobine(to.idTipaOsobine)}">
								<h:outputText
									value="#{messages[stringUtil.merge('label.osobina.',osobina.idOsobine)]}"></h:outputText>
							</rich:dataList>
						</h:panelGroup>
					</rich:dataGrid>
				</f:subview>
				<f:subview
					rendered="#{objektDetails.smjestaj.udljDoAmbulante != null or objektDetails.smjestaj.udljDoBenzinskePostaje != null or objektDetails.smjestaj.udljDoCentraMjesta != null or objektDetails.smjestaj.udljDoHeliodroma != null or objektDetails.smjestaj.udljDoLjekarne != null or objektDetails.smjestaj.udljDoMjenjacnice != null or objektDetails.smjestaj.udljDoNajblGrada != null or objektDetails.smjestaj.udljDoParkaPrirode != null or objektDetails.smjestaj.udljDoPlaze != null or objektDetails.smjestaj.udljDoTrajLuke != null or objektDetails.smjestaj.udljDoTrgovine != null or objektDetails.smjestaj.udljDoZracLuke != null or objektDetails.smjestaj.udljOdMora != null}">
					<br />
					<h3><h:outputText value="#{messages['label.udaljenosti']}" /></h3>
					<h:panelGrid columns="4" width="100%" cellpadding="0"
						cellspacing="0">
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoAmbulante != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoAmbulante']}">
								<f:param value="#{objektDetails.smjestaj.udljDoAmbulante}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoBenzinskePostaje != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoBenzinskePostaje']}">
								<f:param
									value="#{objektDetails.smjestaj.udljDoBenzinskePostaje}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoCentraMjesta != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoCentraMjesta']}">
								<f:param value="#{objektDetails.smjestaj.udljDoCentraMjesta}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoHeliodroma != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoHeliodroma']}">
								<f:param value="#{objektDetails.smjestaj.udljDoHeliodroma}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoLjekarne != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoLjekarne']}">
								<f:param value="#{objektDetails.smjestaj.udljDoLjekarne}"
									alt="#{messages['label.image.alt']}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoMjenjacnice != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoMjenjacnice']}">
								<f:param value="#{objektDetails.smjestaj.udljDoMjenjacnice}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoNajblGrada != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoNajblGrada']}">
								<f:param value="#{objektDetails.smjestaj.udljDoNajblGrada}"
									alt="#{messages['label.image.alt']}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoParkaPrirode != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoParkaPrirode']}">
								<f:param value="#{objektDetails.smjestaj.udljDoParkaPrirode}"
									alt="#{messages['label.image.alt']}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoPlaze != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.udljDoPlaze']}">
								<f:param value="#{objektDetails.smjestaj.udljDoPlaze}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoTrajLuke != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoTrajLuke']}">
								<f:param value="#{objektDetails.smjestaj.udljDoTrajLuke}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoTrgovine != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoTrgovine']}">
								<f:param value="#{objektDetails.smjestaj.udljDoTrgovine}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljDoZracLuke != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat
								value="#{messages['label.osobina.udljDoZracLuke']}">
								<f:param value="#{objektDetails.smjestaj.udljDoZracLuke}" />
							</h:outputFormat>
						</h:panelGroup>
						<h:panelGroup
							rendered="#{objektDetails.smjestaj.udljOdMora != null}">
							<h:graphicImage value="/resources/images/bullet.gif"
								alt="#{messages['label.image.alt']}" />
							<h:outputFormat value="#{messages['label.osobina.udljOdMora']}">
								<f:param value="#{objektDetails.smjestaj.udljOdMora}" />
							</h:outputFormat>
						</h:panelGroup>
					</h:panelGrid>
				</f:subview>
				<f:subview
					rendered="#{adrese.rowCount > 0 or telefoni.rowCount > 0 or emailAdrese.rowCount > 0}">
					<br />
					<div id="contacts">
					<h3><h:outputText value="#{messages['label.contacts']}" /></h3>
					<h:panelGrid columns="3" columnClasses="top,top,top"
						cellpadding="0" cellspacing="0">
						<h:panelGroup rendered="#{adrese.rowCount > 0}">
							<b><h:outputText
								value="#{messages['label.address.list.title']}"></h:outputText></b>
							<rich:dataList var="adresa" value="#{adrese}" rows="5"
								rendered="#{adrese.rowCount > 0}">
								<h:outputText
									value="#{messages[stringUtil.merge('label.address.type.',adresa.tipAdrese.idTipaAdrese)]} " />
								<br />
								<h:outputText value="#{adresa.ulica} #{adresa.broj}"></h:outputText>
								<br />
								<h:outputText
									value="#{adresa.mjesto.posta.postanskiBroj} #{adresa.mjesto.posta.naziv}, #{adresa.mjesto.naziv}"></h:outputText>
							</rich:dataList>
						</h:panelGroup>
						<h:panelGroup rendered="#{telefoni.rowCount > 0}">
							<b><h:outputText
								value="#{messages['label.telefon.list.title']}"></h:outputText></b>
							<rich:dataList var="telefon" value="#{telefoni}" rows="5"
								rendered="#{telefoni.rowCount > 0}">
								<h:outputText
									value="#{messages[stringUtil.merge('label.tip_telefona.',telefon.tipTelefona.idTipTelefona)]}:"></h:outputText>
								<br />
								<h:outputText value="#{telefon.telefonskiBroj}" />
							</rich:dataList>
						</h:panelGroup>
						<h:panelGroup rendered="#{emailAdrese.rowCount > 0}">
							<b><h:outputText
								value="#{messages['label.email.list.title']}"></h:outputText></b>
							<rich:dataList var="mailadresa" value="#{emailAdrese}" rows="5"
								rendered="#{emailAdrese.rowCount > 0}">
								<h:outputText
									value="#{messages[stringUtil.merge('label.email.type.',mailadresa.tipEmailAdrese.idTipaEmailAdrese)]}:" />
								<br />
								<h:outputLink value="mailto:#{mailadresa.email}">
									<h:outputText value="#{mailadresa.email}" />
								</h:outputLink>
							</rich:dataList>
						</h:panelGroup>
					</h:panelGrid></div>
				</f:subview>
				<f:subview rendered="#{cijene.rowCount > 0}">
					<br />
					<h3><h:outputText
						value="#{messages['label.cijene.list.title']}  #{objektDetails.tipObjekta.idTipaObjekta == 4 ? messages['label.cijena.osoba.dan'] : messages['label.cijena.dan']}" /></h3>
					<h:dataTable value="#{cijene}" var="uo"
						rendered="#{! empty cijene}" rowClasses="rowOdd,rowEven"
						styleClass="tablep">
						<h:column>
							<f:facet name="header">#{messages['label.datum.od']}</f:facet>
							<h:outputText
								value="#{stringUtil.formatDate('dd.MM.', uo.datumOd)}" />
						</h:column>
						<h:column>
							<f:facet name="header">#{messages['label.datum.do']}</f:facet>
							<h:outputText
								value="#{stringUtil.formatDate('dd.MM.', uo.datumDo)}" />
						</h:column>
						<h:column
							rendered="#{objektDetails.tipObjekta.idTipaObjekta != 4}">
							<f:facet name="header">#{messages['label.dan']}</f:facet>
							<h:outputText value="#{uo.dan} &#8364;" />
						</h:column>
						<h:column
							rendered="#{objektDetails.tipObjekta.idTipaObjekta == 4}">
							<f:facet name="header">#{messages['label.jednokrevetna']}</f:facet>
							<h:outputText value="#{uo.jednokrevetna} &#8364;" />
						</h:column>
						<h:column
							rendered="#{objektDetails.tipObjekta.idTipaObjekta == 4}">
							<f:facet name="header">#{messages['label.dvokrevetna']}</f:facet>
							<h:outputText value="#{uo.dvokrevetna} &#8364;" />
						</h:column>
						<h:column
							rendered="#{objektDetails.tipObjekta.idTipaObjekta == 4}">
							<f:facet name="header">#{messages['label.trokrevetna']}</f:facet>
							<h:outputText value="#{uo.trokrevetna} &#8364;" />
						</h:column>
						<h:column
							rendered="#{objektDetails.tipObjekta.idTipaObjekta == 4}">
							<f:facet name="header">#{messages['label.apartman']}</f:facet>
							<h:outputText value="#{uo.apartman} &#8364;" />
						</h:column>
					</h:dataTable>
				</f:subview>
			</rich:panel>
			<f:subview
				rendered="#{objektDetails.latituda != null and objektDetails.longituda != null}">
				<rich:panel styleClass="no-border">
					<h2><h:outputText value="#{messages['title.geo.location']} " />
					</h2>
					<ctg:pageGMaps />
				</rich:panel>
			</f:subview>
			<ctg:objave back="backToObjekt" />
			<rich:panel styleClass="no-border">
				<ctg:googleAds width="468" height="60" slot="5912787764" />
			</rich:panel>
			<ctg:dojmovi back="backToObjekt" />
		</s:cache>
	</ui:define>
	<ui:define name="column2">
		<s:cache key="objekt_column2_#{param.idObjekta}_#{currentLang}"
			region="pageFragments">
			<ui:include src="oglasivac.xhtml" />
			<ctg:topObjekti />
		</s:cache>
	</ui:define>
	<ui:define name="topr">
		<rich:panel styleClass="no-border">
			<s:div styleClass="right">
				<h:outputFormat value="#{messages['label.visits.number']}">
					<f:param value="#{objektDetails.brojPosjeta}"></f:param>
				</h:outputFormat>
				<ctg:nbsp />
			</s:div>
			<br class="clearb" />
		</rich:panel>
	</ui:define>
	<ui:define name="tasks">
		<ctg:tasks />
	</ui:define>
</ui:composition>
</body>
</html>
